package com.taiyo.modules.api.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.taiyo.modules.api.dao.TOrderDao;
import com.taiyo.modules.api.entity.TOrderEntity;
import com.taiyo.modules.api.service.TOrderService;



@Service("tOrderService")
public class TOrderServiceImpl implements TOrderService {
	@Autowired
	private TOrderDao tOrderDao;
	
	@Override
	public TOrderEntity queryObject(Long id){
		return tOrderDao.queryObject(id);
	}
	
	@Override
	public List<TOrderEntity> queryList(Map<String, Object> map){
		return tOrderDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return tOrderDao.queryTotal(map);
	}
	
	@Override
	public Long save(TOrderEntity tOrder){
		return tOrderDao.save(tOrder);
	}
	
	@Override
	public void update(TOrderEntity tOrder){
		tOrderDao.update(tOrder);
	}
	
	@Override
	public void delete(Long id){
		tOrderDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		tOrderDao.deleteBatch(ids);
	}
	
}
